package Day01;
public class CeshiTest2 {
    public static void main(String[] args) {
        Student s = new Student();
        Teacher t = new Teacher();
        s.name = "王浩";
        s.age = 10;
        s.classRoom = "S1班";
        s.hobby = "篮球";
        t.name = "王老师";
        t.project = "计算机";
        t.task = "使用Java语言理解程序逻辑";
        t.teachingAge = 5;
        s.information();
        System.out.println("*******************");
        t.information();
    }
}
class Student {
    String name, classRoom, hobby;
    int age;
    void information() {
        System.out.println(name + "\n年龄：" + age + "\n就读于：" + classRoom + "\n爱好：" + hobby);
    }
}
class Teacher {
    String name, project, task;
    int teachingAge;

    void information() {
        System.out.println(name + "\n专业方向：" + project + "\n教授课程：" + task + "\n教龄：" + teachingAge);
    }
}